﻿using System;
using System.Collections.Generic; 
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using Data;

public partial class shuangseswze : System.Web.UI.Page
{
    protected List<Model.LotteryAnnouncement> arlist = null;
    protected string[] SSQList = null;
    protected string SSQblue = null;
    protected DataTable dt = new DataTable();
    protected DataTable dtPaperList = new DataTable();
    protected DataTable dtPaperList2 = new DataTable();
    protected int jinqiCount = 0;
    protected int lotteryType = 1;
    protected int qsType = 3;

    protected void Page_Load(object sender, EventArgs e)
    {
        ZoushiManage.FangWenZouShi();
        if (!IsPostBack)
        {
            jinqiCount = 30;
            bindData(30);
        }
    }
    public List<Model.LotteryAnnouncement> GetPageListSQl(int PageIndex, int PageSize, string sql, out int totalCount)
    {
        string primaryKey = "openTime";
        totalCount = new DataAccess().GetCount<Model.LotteryAnnouncement>(primaryKey, sql);
        return new DataAccess().GetPage_List<Model.LotteryAnnouncement>(PageIndex, PageSize, primaryKey, primaryKey + " desc", sql);
    }
    protected void bindData(int maxValue)
    {
        int totalCount = 0;
        string sql = "";
        if (qsType == 1)
        {
            sql = " LotteryType =" + lotteryType + " and LotteryQS% 2= 1";
        }
        else if (qsType == 2)
        {
            sql = " LotteryType =" + lotteryType + " and LotteryQS% 2= 0";
        }
        else if (qsType == 3)
        {
            sql = " LotteryType =" + lotteryType + " and datepart(weekday,openTime)=3";//周二
        }
        else if (qsType == 4)
        {
            sql = " LotteryType =" + lotteryType + " and datepart(weekday,openTime)=5";//周四
        }
        else if (qsType == 5)
        {
            sql = " LotteryType =" + lotteryType + " and datepart(weekday,openTime)=1";//周日
        }
        arlist =GetPageListSQl(0, maxValue, sql, out totalCount); 


        if (arlist != null)
        {
            dt.Columns.Add("shou", typeof(string));
            dt.Columns.Add("wei", typeof(string));
            dt.Columns.Add("shouwei", typeof(string));
            dt.Columns.Add("weiwei", typeof(string));
            dt.Columns.Add("weishuhezhi", typeof(string));

            dtPaperList.Columns.Add("Hezhi1", typeof(string));
            dtPaperList.Columns.Add("Hezhi2", typeof(string));
            dtPaperList.Columns.Add("Hezhi3", typeof(string));
            dtPaperList.Columns.Add("Hezhi4", typeof(string));
            dtPaperList.Columns.Add("Hezhi5", typeof(string));
            dtPaperList.Columns.Add("Hezhi6", typeof(string));
            dtPaperList.Columns.Add("Hezhi7", typeof(string));
            dtPaperList.Columns.Add("Hezhi8", typeof(string));
            dtPaperList.Columns.Add("Hezhi9", typeof(string));
            dtPaperList.Columns.Add("Hezhi10", typeof(string));
            dtPaperList.Columns.Add("Hezhi11", typeof(string));
            dtPaperList.Columns.Add("Hezhi12", typeof(string));
            dtPaperList.Columns.Add("Hezhi13", typeof(string));
            dtPaperList.Columns.Add("Hezhi14", typeof(string));
            dtPaperList.Columns.Add("Hezhi15", typeof(string));
            dtPaperList.Columns.Add("Hezhiw1", typeof(string));
            dtPaperList.Columns.Add("Hezhiw2", typeof(string));
            dtPaperList.Columns.Add("Hezhiw3", typeof(string));
            dtPaperList.Columns.Add("Hezhiw4", typeof(string));
            dtPaperList.Columns.Add("Hezhiw5", typeof(string));
            dtPaperList.Columns.Add("Hezhiw6", typeof(string));
            dtPaperList.Columns.Add("Hezhiw7", typeof(string));
            dtPaperList.Columns.Add("Hezhiw8", typeof(string));
            dtPaperList.Columns.Add("Hezhiw9", typeof(string));
            dtPaperList.Columns.Add("Hezhiw10", typeof(string));
            dtPaperList2.Columns.Add("Hezhi1", typeof(string));

            for (int i = 0; i < arlist.Count; i++)
            {
                string[] redBall = arlist[i].LotteryNo.Split('+')[0].Split(',');
                 

                int hezhi = 0;//和值 
                int weishuhezhi = 0;//尾数和值 
                int max = 0;
                int min = 35;
                for (int m = 0; m < redBall.Length; m++)
                { 
                    int redBalls=int.Parse(redBall[m]);
                    if (redBalls>max)
                    {
                        max = redBalls;
                    }
                    if (redBalls < min)
                    {
                        min = redBalls;
                    }
                    hezhi += redBalls;
                }
                DataRow nr = dt.NewRow();
                nr["shou"] = max.ToString();
                nr["shouwei"] = max.ToString();
                nr["wei"] = min.ToString();
                nr["shouwei"] = max.ToString().Substring(max.ToString().Length-1,1);
                nr["weiwei"] = min.ToString().Substring(min.ToString().Length - 1, 1);
                weishuhezhi = int.Parse(max.ToString().Substring(max.ToString().Length - 1, 1)) + int.Parse(min.ToString().Substring(min.ToString().Length - 1, 1));
                nr["weishuhezhi"] = weishuhezhi.ToString();
                dt.Rows.Add(nr);

                hezhi += int.Parse(arlist[i].LotteryNo.Split('+')[1]);
                DataRow newRow = dtPaperList2.NewRow();
                newRow["Hezhi1"] = hezhi.ToString();
                dtPaperList2.Rows.Add(newRow);
                //绑定和值
                bindHezhi(hezhi, int.Parse(hezhi.ToString().Substring(hezhi.ToString().Length - 1, 1)));

                //计算条形图中每个数的个数
                bindTiaoxing(hezhi, int.Parse(hezhi.ToString().Substring(hezhi.ToString().Length - 1, 1)));
            }
        }
    } 
    protected int[] hezhiDt = new int[25];
    /// <summary>
    /// 绑定和值 和值尾数到一个新的datatable
    /// </summary>
    /// <param name="data">和值</param>
    /// <param name="dataLast">和值尾数</param>
    protected void bindHezhi(int data, int dataLast)
    {
        DataRow newRow = dtPaperList.NewRow(); 
        if (data >= 21 && data < 48)
        {
            newRow["Hezhi1"] = data.ToString();
            newRow["Hezhi2"] = "0";
            newRow["Hezhi3"] = "0";
            newRow["Hezhi4"] = "0";
            newRow["Hezhi5"] = "0";
            newRow["Hezhi6"] = "0";
            newRow["Hezhi7"] = "0";
            newRow["Hezhi8"] = "0";
            newRow["Hezhi9"] = "0";
            newRow["Hezhi10"] = "0";
            newRow["Hezhi11"] = "0";
            newRow["Hezhi12"] = "0";
            newRow["Hezhi13"] = "0";
            newRow["Hezhi14"] = "0";
            newRow["Hezhi15"] = "0";
        }
        else if (data >= 48 && data < 70)
        {
            newRow["Hezhi2"] = data.ToString();
            newRow["Hezhi1"] = "0";
            newRow["Hezhi3"] = "0";
            newRow["Hezhi4"] = "0";
            newRow["Hezhi5"] = "0";
            newRow["Hezhi6"] = "0";
            newRow["Hezhi7"] = "0";
            newRow["Hezhi8"] = "0";
            newRow["Hezhi9"] = "0";
            newRow["Hezhi10"] = "0";
            newRow["Hezhi11"] = "0";
            newRow["Hezhi12"] = "0";
            newRow["Hezhi13"] = "0";
            newRow["Hezhi14"] = "0";
            newRow["Hezhi15"] = "0";
        }
        else if (data >= 70 && data < 84)
        {
            newRow["Hezhi3"] = data.ToString();
            newRow["Hezhi2"] = "0";
            newRow["Hezhi1"] = "0";
            newRow["Hezhi4"] = "0";
            newRow["Hezhi5"] = "0";
            newRow["Hezhi6"] = "0";
            newRow["Hezhi7"] = "0";
            newRow["Hezhi8"] = "0";
            newRow["Hezhi9"] = "0";
            newRow["Hezhi10"] = "0";
            newRow["Hezhi11"] = "0";
            newRow["Hezhi12"] = "0";
            newRow["Hezhi13"] = "0";
            newRow["Hezhi14"] = "0";
            newRow["Hezhi15"] = "0";
        }
        else if (data >= 84 && data < 93)
        {
            newRow["Hezhi4"] = data.ToString();
            newRow["Hezhi2"] = "0";
            newRow["Hezhi3"] = "0";
            newRow["Hezhi1"] = "0";
            newRow["Hezhi5"] = "0";
            newRow["Hezhi6"] = "0";
            newRow["Hezhi7"] = "0";
            newRow["Hezhi8"] = "0";
            newRow["Hezhi9"] = "0";
            newRow["Hezhi10"] = "0";
            newRow["Hezhi11"] = "0";
            newRow["Hezhi12"] = "0";
            newRow["Hezhi13"] = "0";
            newRow["Hezhi14"] = "0";
            newRow["Hezhi15"] = "0";
        }
        else if (data >= 93 && data < 97)
        {
            newRow["Hezhi5"] = data.ToString();
            newRow["Hezhi2"] = "0";
            newRow["Hezhi3"] = "0";
            newRow["Hezhi4"] = "0";
            newRow["Hezhi1"] = "0";
            newRow["Hezhi6"] = "0";
            newRow["Hezhi7"] = "0";
            newRow["Hezhi8"] = "0";
            newRow["Hezhi9"] = "0";
            newRow["Hezhi10"] = "0";
            newRow["Hezhi11"] = "0";
            newRow["Hezhi12"] = "0";
            newRow["Hezhi13"] = "0";
            newRow["Hezhi14"] = "0";
            newRow["Hezhi15"] = "0";
        }
        else if (data >= 97 && data < 100)
        {
            newRow["Hezhi6"] = data.ToString();
            newRow["Hezhi2"] = "0";
            newRow["Hezhi3"] = "0";
            newRow["Hezhi4"] = "0";
            newRow["Hezhi5"] = "0";
            newRow["Hezhi1"] = "0";
            newRow["Hezhi7"] = "0";
            newRow["Hezhi8"] = "0";
            newRow["Hezhi9"] = "0";
            newRow["Hezhi10"] = "0";
            newRow["Hezhi11"] = "0";
            newRow["Hezhi12"] = "0";
            newRow["Hezhi13"] = "0";
            newRow["Hezhi14"] = "0";
            newRow["Hezhi15"] = "0";
        }
        else if (data >= 100 && data < 103)
        {
            newRow["Hezhi7"] = data.ToString();
            newRow["Hezhi2"] = "0";
            newRow["Hezhi3"] = "0";
            newRow["Hezhi4"] = "0";
            newRow["Hezhi5"] = "0";
            newRow["Hezhi6"] = "0";
            newRow["Hezhi1"] = "0";
            newRow["Hezhi8"] = "0";
            newRow["Hezhi9"] = "0";
            newRow["Hezhi10"] = "0";
            newRow["Hezhi11"] = "0";
            newRow["Hezhi12"] = "0";
            newRow["Hezhi13"] = "0";
            newRow["Hezhi14"] = "0";
            newRow["Hezhi15"] = "0";
        }
        else if (data >= 103 && data < 106)
        {
            newRow["Hezhi8"] = data.ToString();
            newRow["Hezhi2"] = "0";
            newRow["Hezhi3"] = "0";
            newRow["Hezhi4"] = "0";
            newRow["Hezhi5"] = "0";
            newRow["Hezhi6"] = "0";
            newRow["Hezhi7"] = "0";
            newRow["Hezhi1"] = "0";
            newRow["Hezhi9"] = "0";
            newRow["Hezhi10"] = "0";
            newRow["Hezhi11"] = "0";
            newRow["Hezhi12"] = "0";
            newRow["Hezhi13"] = "0";
            newRow["Hezhi14"] = "0";
            newRow["Hezhi15"] = "0";
        }
        else if (data >= 106 && data < 109)
        {
            newRow["Hezhi9"] = data.ToString();
            newRow["Hezhi2"] = "0";
            newRow["Hezhi3"] = "0";
            newRow["Hezhi4"] = "0";
            newRow["Hezhi5"] = "0";
            newRow["Hezhi6"] = "0";
            newRow["Hezhi7"] = "0";
            newRow["Hezhi8"] = "0";
            newRow["Hezhi1"] = "0";
            newRow["Hezhi10"] = "0";
            newRow["Hezhi11"] = "0";
            newRow["Hezhi12"] = "0";
            newRow["Hezhi13"] = "0";
            newRow["Hezhi14"] = "0";
            newRow["Hezhi15"] = "0";
        }
        else if (data >= 109 && data < 112)
        {
            newRow["Hezhi10"] = data.ToString();
            newRow["Hezhi2"] = "0";
            newRow["Hezhi3"] = "0";
            newRow["Hezhi4"] = "0";
            newRow["Hezhi5"] = "0";
            newRow["Hezhi6"] = "0";
            newRow["Hezhi7"] = "0";
            newRow["Hezhi8"] = "0";
            newRow["Hezhi9"] = "0";
            newRow["Hezhi1"] = "0";
            newRow["Hezhi11"] = "0";
            newRow["Hezhi12"] = "0";
            newRow["Hezhi13"] = "0";
            newRow["Hezhi14"] = "0";
            newRow["Hezhi15"] = "0";
        } 
        else if (data >= 112 && data < 116)
        {
            newRow["Hezhi11"] = data.ToString();
            newRow["Hezhi2"] = "0";
            newRow["Hezhi3"] = "0";
            newRow["Hezhi4"] = "0";
            newRow["Hezhi5"] = "0";
            newRow["Hezhi6"] = "0";
            newRow["Hezhi7"] = "0";
            newRow["Hezhi8"] = "0";
            newRow["Hezhi9"] = "0";
            newRow["Hezhi10"] = "0";
            newRow["Hezhi1"] = "0";
            newRow["Hezhi12"] = "0";
            newRow["Hezhi13"] = "0";
            newRow["Hezhi14"] = "0";
            newRow["Hezhi15"] = "0";
        }
        else if (data >= 116 && data < 124)
        {
            newRow["Hezhi12"] = data.ToString();
            newRow["Hezhi2"] = "0";
            newRow["Hezhi3"] = "0";
            newRow["Hezhi4"] = "0";
            newRow["Hezhi5"] = "0";
            newRow["Hezhi6"] = "0";
            newRow["Hezhi7"] = "0";
            newRow["Hezhi8"] = "0";
            newRow["Hezhi9"] = "0";
            newRow["Hezhi10"] = "0";
            newRow["Hezhi11"] = "0";
            newRow["Hezhi1"] = "0";
            newRow["Hezhi13"] = "0";
            newRow["Hezhi14"] = "0";
            newRow["Hezhi15"] = "0";
        }
        else if (data >= 124 && data < 137)
        {
            newRow["Hezhi13"] = data.ToString();
            newRow["Hezhi2"] = "0";
            newRow["Hezhi3"] = "0";
            newRow["Hezhi4"] = "0";
            newRow["Hezhi5"] = "0";
            newRow["Hezhi6"] = "0";
            newRow["Hezhi7"] = "0";
            newRow["Hezhi8"] = "0";
            newRow["Hezhi9"] = "0";
            newRow["Hezhi10"] = "0";
            newRow["Hezhi11"] = "0";
            newRow["Hezhi12"] = "0";
            newRow["Hezhi1"] = "0";
            newRow["Hezhi14"] = "0";
            newRow["Hezhi15"] = "0";
        }
        else if (data >= 137 && data < 158)
        {
            newRow["Hezhi14"] = data.ToString();
            newRow["Hezhi2"] = "0";
            newRow["Hezhi3"] = "0";
            newRow["Hezhi4"] = "0";
            newRow["Hezhi5"] = "0";
            newRow["Hezhi6"] = "0";
            newRow["Hezhi7"] = "0";
            newRow["Hezhi8"] = "0";
            newRow["Hezhi9"] = "0";
            newRow["Hezhi10"] = "0";
            newRow["Hezhi11"] = "0";
            newRow["Hezhi12"] = "0";
            newRow["Hezhi13"] = "0";
            newRow["Hezhi1"] = "0";
            newRow["Hezhi15"] = "0";
        }
        else if (data >= 158)
        {
            newRow["Hezhi15"] = data.ToString();
            newRow["Hezhi2"] = "0";
            newRow["Hezhi3"] = "0";
            newRow["Hezhi4"] = "0";
            newRow["Hezhi5"] = "0";
            newRow["Hezhi6"] = "0";
            newRow["Hezhi7"] = "0";
            newRow["Hezhi8"] = "0";
            newRow["Hezhi9"] = "0";
            newRow["Hezhi10"] = "0";
            newRow["Hezhi11"] = "0";
            newRow["Hezhi12"] = "0";
            newRow["Hezhi13"] = "0";
            newRow["Hezhi14"] = "0";
            newRow["Hezhi1"] = "0";
        }

        if (dataLast==0)
        {
            newRow["Hezhiw1"] = dataLast.ToString();
            newRow["Hezhiw2"] = "";
            newRow["Hezhiw3"] = "";
            newRow["Hezhiw4"] = "";
            newRow["Hezhiw5"] = "";
            newRow["Hezhiw6"] = "";
            newRow["Hezhiw7"] = "";
            newRow["Hezhiw8"] = "";
            newRow["Hezhiw9"] = "";
            newRow["Hezhiw10"] = ""; 
        }
        else if (dataLast==1)
        {
            newRow["Hezhiw2"] = dataLast.ToString();
            newRow["Hezhiw1"] = "";
            newRow["Hezhiw3"] = "";
            newRow["Hezhiw4"] = "";
            newRow["Hezhiw5"] = "";
            newRow["Hezhiw6"] = "";
            newRow["Hezhiw7"] = "";
            newRow["Hezhiw8"] = "";
            newRow["Hezhiw9"] = "";
            newRow["Hezhiw10"] = ""; 
        }
        else if (dataLast==2)
        {
            newRow["Hezhiw3"] = dataLast.ToString();
            newRow["Hezhiw2"] = "";
            newRow["Hezhiw1"] = "";
            newRow["Hezhiw4"] = "";
            newRow["Hezhiw5"] = "";
            newRow["Hezhiw6"] = "";
            newRow["Hezhiw7"] = "";
            newRow["Hezhiw8"] = "";
            newRow["Hezhiw9"] = "";
            newRow["Hezhiw10"] = ""; 
        }
        else if (dataLast==3)
        {
            newRow["Hezhiw4"] = dataLast.ToString();
            newRow["Hezhiw2"] = "";
            newRow["Hezhiw3"] = "";
            newRow["Hezhiw1"] = "";
            newRow["Hezhiw5"] = "";
            newRow["Hezhiw6"] = "";
            newRow["Hezhiw7"] = "";
            newRow["Hezhiw8"] = "";
            newRow["Hezhiw9"] = "";
            newRow["Hezhiw10"] = ""; 
        }
        else if (dataLast==4)
        {
            newRow["Hezhiw5"] = dataLast.ToString();
            newRow["Hezhiw2"] = "";
            newRow["Hezhiw3"] = "";
            newRow["Hezhiw4"] = "";
            newRow["Hezhiw1"] = "";
            newRow["Hezhiw6"] = "";
            newRow["Hezhiw7"] = "";
            newRow["Hezhiw8"] = "";
            newRow["Hezhiw9"] = "";
            newRow["Hezhiw10"] = ""; 
        }
        else if (dataLast == 5)
        {
            newRow["Hezhiw6"] = dataLast.ToString();
            newRow["Hezhiw2"] = "";
            newRow["Hezhiw3"] = "";
            newRow["Hezhiw4"] = "";
            newRow["Hezhiw5"] = "";
            newRow["Hezhiw1"] = "";
            newRow["Hezhiw7"] = "";
            newRow["Hezhiw8"] = "";
            newRow["Hezhiw9"] = "";
            newRow["Hezhiw10"] = ""; 
        }
        else if (dataLast==6)
        {
            newRow["Hezhiw7"] = dataLast.ToString();
            newRow["Hezhiw2"] = "";
            newRow["Hezhiw3"] = "";
            newRow["Hezhiw4"] = "";
            newRow["Hezhiw5"] = "";
            newRow["Hezhiw6"] = "";
            newRow["Hezhiw1"] = "";
            newRow["Hezhiw8"] = "";
            newRow["Hezhiw9"] = "";
            newRow["Hezhiw10"] = ""; 
        }
        else if (dataLast==7)
        {
            newRow["Hezhiw8"] = dataLast.ToString();
            newRow["Hezhiw2"] = "";
            newRow["Hezhiw3"] = "";
            newRow["Hezhiw4"] = "";
            newRow["Hezhiw5"] = "";
            newRow["Hezhiw6"] = "";
            newRow["Hezhiw7"] = "";
            newRow["Hezhiw1"] = "";
            newRow["Hezhiw9"] = "";
            newRow["Hezhiw10"] = ""; 
        }
        else if (dataLast==8)
        {
            newRow["Hezhiw9"] = dataLast.ToString();
            newRow["Hezhiw2"] = "";
            newRow["Hezhiw3"] = "";
            newRow["Hezhiw4"] = "";
            newRow["Hezhiw5"] = "";
            newRow["Hezhiw6"] = "";
            newRow["Hezhiw7"] = "";
            newRow["Hezhiw8"] = "";
            newRow["Hezhiw1"] = "";
            newRow["Hezhiw10"] = ""; 
        }
        else if (dataLast==9)
        {
            newRow["Hezhiw10"] = dataLast.ToString();
            newRow["Hezhiw2"] = "";
            newRow["Hezhiw3"] = "";
            newRow["Hezhiw4"] = "";
            newRow["Hezhiw5"] = "";
            newRow["Hezhiw6"] = "";
            newRow["Hezhiw7"] = "";
            newRow["Hezhiw8"] = "";
            newRow["Hezhiw9"] = "";
            newRow["Hezhiw1"] = ""; 
        } 
        dtPaperList.Rows.Add(newRow);
    }

    protected void Button1_Click(object sender, EventArgs e)
    {
        jinqiCount = int.Parse(DropDownList1.SelectedValue);
        bindData(int.Parse(DropDownList1.SelectedValue));
    }
    protected int[] TiaoxingDT = new int[25];
    /// <summary>
    /// 绑定条形码
    /// </summary>
    /// <param name="data">和值</param>
    /// <param name="datalast">和值尾数</param>
    protected void bindTiaoxing(int data,int datalast)
    {
        if (data >= 21 && data < 48)
        {
            TiaoxingDT[0] +=1;
        }
        else if (data >= 48 && data < 70)
        {
            TiaoxingDT[1] += 1;
        }
        else if (data >= 70 && data < 84)
        {
            TiaoxingDT[2] += 1;
        }
        else if (data >= 84 && data < 93)
        {
            TiaoxingDT[3] += 1;
        }
        else if (data >= 93 && data < 97)
        {
            TiaoxingDT[4] += 1;
        }
        else if (data >= 97 && data < 100)
        {
            TiaoxingDT[5] += 1;
        }
        else if (data >= 100 && data < 103)
        {
            TiaoxingDT[6] +=1;
        }
        else if (data >= 103 && data < 106)
        {
            TiaoxingDT[7] +=1;
        }
        else if (data >= 106 && data < 109)
        {
            TiaoxingDT[8] +=1;
        }
        else if (data >= 109 && data < 112)
        {
            TiaoxingDT[9] +=1;
        }
        else if (data >= 112 && data < 116)
        {
            TiaoxingDT[10] +=1;
        }
        else if (data >= 116 && data < 124)
        {
            TiaoxingDT[11] +=1;
        }
        else if (data >= 124 && data < 137)
        {
            TiaoxingDT[12] +=1;
        }
        else if (data >= 137 && data < 158)
        {
            TiaoxingDT[13] +=1;
        }
        else if (data >= 158)
        {
            TiaoxingDT[14] +=1;
        }

        if (datalast==0)
        {
            TiaoxingDT[15] +=1;
        }
        else if (datalast == 1)
        {
            TiaoxingDT[16] +=1;
        }
        else if (datalast == 2)
        {
            TiaoxingDT[17] +=1;
        }
        else if (datalast == 3)
        {
            TiaoxingDT[18] +=1;
        }
        else if (datalast == 4)
        {
            TiaoxingDT[19] +=1;
        }
        else if (datalast == 5)
        {
            TiaoxingDT[20] +=1;
        }
        else if (datalast == 6)
        {
            TiaoxingDT[21] +=1;
        }
        else if (datalast == 7)
        {
            TiaoxingDT[22] +=1;
        }
        else if (datalast == 8)
        {
            TiaoxingDT[23] +=1;
        }
        else if (datalast == 9)
        {
            TiaoxingDT[24] +=1;
        }
    }
}